import request from '@/utils/request'

export function getContentLsit(query) {
  return request({
    url: '/mms/v1/content/list',
    method: 'get',
    params: query
  })
}

export function createContent(data) {
  return request({
    url: '/mms/v1/content/save',
    method: 'post',
    data
  })
}

export function deleteContent(data) {
  return request({
    url: '/mms/v1/content/delete',
    method: 'post',
    data
  })
}

export function getContentDetail(data) {
  return request({
    url: `/mms/v1/content/detail/${data.id}`,
    method: 'get'
  })
}
